<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Admin\LetterController;
use App\Http\Controllers\Admin\PublicController;

Route::get('/', function () {
    return view('pay');
});



Route::any('/post', [LetterController::class, 'writeLetter'])->name('writeLetter');
Route::any('/send', [LetterController::class, 'sendLetter'])->name('sendLetter');


Route::any('/api/order/list', [PublicController::class, 'orderList'])->name('orderList');
Route::any('/api/order', [PublicController::class, 'order'])->name('order');
Route::any('/api/alipay/callback', [PublicController::class, 'alipayCallBack'])->name('alipayCallBack');
Route::any('/api/alipay/trade-query', [PublicController::class, 'tradeQuery'])->name('tradeQuery');




